#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">站点管理</a>
	  	<a><cite>站点管理</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	#if(SiteInfo.siteId.toInt() != 0)
	<div class="text-right">
		<a class="pjax-a layui-btn" href="javascript:;" onclick="resetSite()">恢复默认站点</a>
	</div>
	#end
	<table class="layui-table">
	  	<colgroup>
	    	<col width="80">
	    	<col width="200">
	    	<col width="150">
	    	<col>
	    	<col width="110">
	  	</colgroup>
	 	<thead>
	    	<tr>
	    		<th>序号</th>
	      		<th>名称</th>
	      		<th>标识</th>
	      		<th>描述</th>
	      		<th>操作</th>
	    	</tr> 
	  	</thead>
	  	<tbody>
	  		#for(x : siteList)
	    	<tr>
	      		<td>#(for.count)</td>
	      		<td>#(x.siteName)</td>
	      		<td>#(x.siteSign)</td>
	      		<td>#(x.siteDes)</td>
	      		<td>
	      			#if(x.status=="1")
	      			主站点
	      			#else
	      			<a class="pjax-a layui-btn layui-btn-xs" href="#(ctx)/cmsSite/enterSiteEdit/#(x.id)" title="编辑/查看">
	      				<i class="layui-icon layui-icon-edit"></i>
	      			</a>
	      			<a href="javascript:;" onclick="setMainSite('#(x.id)')" title="设为当前站点" class="layui-btn layui-btn-xs layui-btn-danger">
	      				<i class="layui-icon layui-icon-home"></i>
	      			</a>
	      			#end
	      		</td>
	    	</tr>
	    	#end
	  	</tbody>
	</table>
</div>
#@jsInit()
#end